-- GENERATED SPELL FOR [Shadowsword Lifeshaper] --


function spell0_25506(pUnit, Event) --@Drain Life,Drain--
pUnit:FullCastSpellOnTarget(46466,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_25506', 5000, 1)
end

function Sorts_25506(pUnit, Event)
local choix_sorts_25506 = math.random(0, 0)
if choix_sorts_25506 == 0 then
pUnit:RegisterEvent('spell0_25506', 1, 1)
end
end

function mob25506_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25506', math.random(1500, 3000), 1)
end

function mob25506_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25506_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25506_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25506, 1, 'mob25506_Action')
RegisterUnitEvent(25506, 2, 'mob25506_Leave')
RegisterUnitEvent(25506, 3, 'mob25506_Kill')
RegisterUnitEvent(25506, 4, 'mob25506_Die')
